<?php
// this check prevents access to debug front controllers that are deployed by accident to production servers.
// feel free to remove this, extend it or make something more sophisticated.

if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1', '172.20.18.133', '201.43.189.88')))
{
  die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.');
}
?>

<script type="application/javascript">
    function getip(json){
      document.write(json.ip); // alerts the ip address
    }
</script>

<script type="application/javascript" src="http://jsonip.appspot.com/?callback=getip"></script>
<hr />
<?php 

print " - ".$_SERVER['REMOTE_ADDR']." - ".$_SERVER['LOCAL_ADDR']." - ".$_SERVER['SERVER_ADDR'];

phpinfo();

?>
